package me.ereach.collections;

import me.ereach.comparable.User;
import java.util.Comparator;

public class EmailComparator implements Comparator<User> {
    @Override
    public int compare(User o1, User o2) {
        return o1.getEmail().compareTo(o2.getEmail());
    }
}
